<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        

        <div class="layui-form-item">
            <label class="layui-form-label required">标题</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="text" name="title" class="layui-input" lay-reqtext="请输入标题" placeholder="请输入标题" value="{$row.type}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">类型</label>
            <div class="layui-input-block">
                <select name="type">
                    {foreach $typeList as $vo}
                    <option value="{$vo.value}" {if $row.type==$vo.value}selected=""{/if}>{$vo.title}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">发布时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" type="text" name="release_time" class="layui-input" lay-reqtext="请输入发布时间" placeholder="请输入发布时间" value="{$row.release_time}" id="release_time">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">内容</label>
            <div class="layui-input-block">
                <textarea name="content" class="layui-textarea editor" placeholder="请输入内容">{$row.content|raw}</textarea>
            </div>
        </div>


        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>

<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //日期时间范围
        laydate.render({
            elem: '#release_time'
            ,type: 'datetime'
        });
    })
</script>